package com.acminds.fotoporter.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;


/**
 * The persistent class for the ITEM_ORDERED database table.
 * 
 */
@Entity
@Table(name="ITEM_ORDERED")
public class ItemOrdered extends com.acminds.fotoporter.persistence.BaseDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ITEM_ORDERED_ID")
	private int itemOrderedId;

	@Column(name="BASE_PRICE")
	private BigDecimal basePrice;

	@Column(name="CATEGORY_NAME")
	private int categoryName;

	@Column(name="ITEM_DESC")
	private String itemDesc;

	@Column(name="ITEM_NAME")
	private String itemName;

	@Column(name="QUANTITY")
	private int quantity;

	@Column(name="STATUS")
	private int status;

	@Column(name="TOTAL_ITEM_PRICE")
	private BigDecimal totalItemPrice;

	//bi-directional many-to-one association to FeatureSelected
	@OneToMany(mappedBy="itemOrdered")
	private List<FeatureSelected> featureSelecteds;

	//bi-directional many-to-one association to Image
    @ManyToOne
	@JoinColumn(name="IMAGE_ID")
	private Image image;

	//bi-directional many-to-one association to OrderRequest
    @ManyToOne
	@JoinColumn(name="ORDER_REQUEST_ID")
	private OrderRequest orderRequest;

    public ItemOrdered() {
    }

	public int getItemOrderedId() {
		return this.itemOrderedId;
	}

	public void setItemOrderedId(int itemOrderedId) {
		this.itemOrderedId = itemOrderedId;
	}

	public BigDecimal getBasePrice() {
		return this.basePrice;
	}

	public void setBasePrice(BigDecimal basePrice) {
		this.basePrice = basePrice;
	}

	public int getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(int categoryName) {
		this.categoryName = categoryName;
	}

	public String getItemDesc() {
		return this.itemDesc;
	}

	public void setItemDesc(String itemDesc) {
		this.itemDesc = itemDesc;
	}

	public String getItemName() {
		return this.itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public int getQuantity() {
		return this.quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public BigDecimal getTotalItemPrice() {
		return this.totalItemPrice;
	}

	public void setTotalItemPrice(BigDecimal totalItemPrice) {
		this.totalItemPrice = totalItemPrice;
	}

	public List<FeatureSelected> getFeatureSelecteds() {
		return this.featureSelecteds;
	}

	public void setFeatureSelecteds(List<FeatureSelected> featureSelecteds) {
		this.featureSelecteds = featureSelecteds;
	}
	
	public Image getImage() {
		return this.image;
	}

	public void setImage(Image image) {
		this.image = image;
	}
	
	public OrderRequest getOrderRequest() {
		return this.orderRequest;
	}

	public void setOrderRequest(OrderRequest orderRequest) {
		this.orderRequest = orderRequest;
	}
	
}